package service

import (
	sqlc "bgs/db/sqlc"
	"context"
)

// GetProductPtr
func (s *ProductServiceImp) GetProductPtr(ctx context.Context, q *sqlc.Queries, productID int64) (ptr *sqlc.Product, err error) {
	entity, err := q.GetProduct(ctx, productID)
	if err != nil {
		return
	}
	ptr = &entity
	return
}
